import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'mdi:application-cog-outline',
      order: 30,
      title: '系统应用',
      // authority: ['circleManager'],
    },
    name: 'Application',
    path: '/application',
    children: [
      {
        name: 'ApplicationServeMinitor',
        path: '/application/serve-minitor',
        component: () => import('#/views/application/serve-minitor/index.vue'),
        meta: {
          icon: 'lucide:book',
          title: '服务监控',
        },
      },
      {
        name: 'ApplicationTask',
        path: '/application/task',
        component: () => import('#/views/application/task/index.vue'),
        meta: {
          icon: 'lucide:book',
          title: '计划任务',
        },
      },
      {
        name: 'ApplicationOnline',
        path: '/application/online',
        component: () => import('#/views/application/online/index.vue'),
        meta: {
          icon: 'lucide:image',
          title: '在线用户',
        },
      },
      {
        name: 'ApplicationBlacklist',
        path: '/application/blacklist',
        component: () => import('#/views/application/blacklist/index.vue'),
        meta: {
          icon: 'lucide:image',
          title: '黑名单',
        },
      },
    ],
  },
];

export default routes;
